<%# helper/header.html %>

<div class="main-container" id="main-container">


    <div class="content-item">
        <ul class="line-list-wrapper" id="fav-list" temId="j-tmpl-favlist">

            <% if(this.favlist.list){ var item = this.favlist.list; %>
            <% item.forEach(function(info,index){ %>

            <li data-time="<%= index %>">
                <div class="list-content">
                    <a class="item" href="veryside://link?type=<%= info.type %>&id=<%= info.id %>">
                        <div class="index-img
                        <% if(info.type == 10){ %>
                        article-img
                        <% }else{ %>
                        other-img
                        <% } %>
                        lazy" data-original="<%= info.thumb %>"></div>
                        <div class="img-des-block <%= info.type == 1 ? 'pedia-img-des' : '' %>">
                            <p><%= info.type == 10 ? (info.tag || '' ) : (info.title || '') %></p>
                            <p><%= info.type == 10 ? (info.title || '' ) : (info.summary || '') %></p>
                        </div>
                    </a>
                </div>

                <div class="r-times-wrapper">
                    <div class="list-time" data-time="">
                        <span class="data-time" data-time="<%= info.id %>"><%= info.id %></span>
                        <em></em>
                    </div>
                    <div class="time-flag">
                        <em></em>
                    </div>
                </div>
            </li>
            <% }) %>
            <% } %>

        </ul>

        <div class="active-data">
            <div class="list-time" data-time="">
                <span class="data-time"></span>
                <em></em>
            </div>
            <div class="time-flag"></div>
        </div>
    </div>

    <!--<div class="drop-down-wrapper">-->
        <!--<div class="msg drop-down-msg active">上滑加载更多</div>-->
        <!--<div class="msg data-loading">-->
            <!--<div></div>-->
            <!--加载中-->
        <!--</div>-->
        <!--<div class="msg no-data">暂无更多数据</div>-->
    <!--</div>-->
</div>

<script id="j-tmpl-favlist" type="text/template">
    {{ for(var i = 0; i < it.list.length; i++){ }}

    <li>
        <div class="list-content">
            <a class="item" href="veryside://link?type={{=it.list[i].type}}&id={{=it.list[i].id}}">
                <img class="index-img lazy" data-original="{{=it.list[i].thumb}}" src="/style/h5/images/grey.gif" alt=""/>
            </a>
        </div>

        <div class="r-times-wrapper">
            <div class="list-time" data-time="">
                <span class="data-time" data-time="{{= i }}">{{= i }}</span>
                <em></em>
            </div>
            <div class="time-flag">
                <em></em>
            </div>
        </div>
    </li>
    {{ } }}
</script>


<script id="j-tmpl-favlist-load" type="text/template">
    {{ for(var i = 0; i < it.list.length; i++){ }}
    <li>
        <div class="list-content">
            <a class="item" href="veryside://link?type={{=it.list[i].type}}&id={{=it.list[i].id}}">
                <img class="index-img lazy" data-original="{{=it.list[i].thumb}}" src="/style/h5/images/grey.gif" alt=""/>
            </a>
        </div>

        <div class="r-times-wrapper">
            <div class="list-time" data-time="">
                <span class="data-time" data-time="{{= i }}">{{= i }}</span>
                <em></em>
            </div>
            <div class="time-flag">
                <em></em>
            </div>
        </div>
    </li>
    {{ } }}
</script>

<%# helper/footer.html %>